<template>
  <div class="login-container">
    <van-nav-bar title="登录" left-arrow @click-left="goBack" />
    <van-form @submit="onSubmit">
      <van-field
        v-model="tel"
        type="tel"
        label="手机号"
        left-icon="phone-o"
        placeholder="请输入手机号"
         :rules="userFormRules.code"
      >
        <i slot="left-icon" class="toutiao toutiao-shouji"></i>
      </van-field>
      <van-field
        v-model="password"
        type="password"
        label="密码"
        left-icon="setting-o"
        placeholder="请输入验证码"
      >
        <i slot="left-icon" class="toutiao toutiao-yanzhengma"></i>
        <template #button>
          <van-button round size="small" type="default">发送验证码</van-button>
        </template>
      </van-field>
      <div style="margin: 16px">
        <van-button round block type="info" native-type="submit"
          >提交</van-button
        >
      </div>
    </van-form>
  </div>
</template>

<script>
export default {
  name: "LoginPage",
  components: {},
  props: {},
  data() {
    return {
      tel: "",
      password: "",
      pattern=""
    };
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {
    goBack() {},
    onSubmit(values) {
      console.log("submit", values);
    },
  },
};
</script>
<style scoped lang="less"></style>